<?php foreach( $arr_info as $sub ) {
    if ( $sub['PARENT_ID'] > 0 ) {
        $int_genre_id  = $sub['PARENT_ID'];
        $int_sub_genre = $sub['ID'];
    } else {
        $int_genre_id  = $sub['ID'];
        $int_sub_genre = 0;
    }
?>
<a name="anchor<?=$sub['ID'];?>">
<li class="list">
    <a href="/iphone_index.php?act=category_app&genre_id=<?=$int_genre_id;?>&sub_genre=<?=$int_sub_genre;?>" class="list_ac">
        <img src="<?=App::get_app_icon($sub['ICON']);?>" class="list_l fl" />
        <div class="list_c fl c_list_c">
            <h3><?=$sub['GENRE'].'('.$sub['APPS_NUM_IPHONE'].')';?></h3>
            <p><span><?=$sub['GENRE_INFO'];?></span></p>
        </div>
        <div class="clr"></div>
    </a>
</li>
<?php } ?>
